package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    Role findById(Integer id);

    void add(Role role, Integer[] permissionIds);

    void edit(Role role, Integer[] permissionIds);

    void delete(Integer id);


    List<Role> findAllRole();

    PageResult findPage(QueryPageBean pageBean);

    List<Permission> findAll();

    List<Integer> findPermissionIdsByRole(Integer permissionIds);

    List<Integer> findRolesByMenuId(Integer menuId);
}
